package com.henu.engineer.dao.entity.user

import org.springframework.format.annotation.DateTimeFormat
import java.time.LocalDate
import java.util.*
import javax.validation.constraints.NotBlank

/**
 * @author noexcept
 * @date 2021/7/22 17:43
 */

data class Student(
    var id: String,
    @NotBlank
    var name: String,
    @NotBlank
    var gender: String,
    @NotBlank
    var specialization: String,
    @NotBlank
    var contact: String,
    @NotBlank
    var identity: String,
    @NotBlank
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    var enrollTime: LocalDate,
){}